package com.wm.eduService.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: sshdg
 * @Date: 2020/10/14 20:42
 */
@Component
@FeignClient(name = "service-order", fallback = OrderClientImpl.class)
public interface OrderClient {
    /**
     * 调用order模块的接口查询课程是否被购买
     * @param courseId 课程id
     * @param memberId 会员id
     * @return
     */
    @GetMapping("/orderService/order/isBuyCourse/{courseId}/{memberId}")
    public Boolean isBuyCourse(@PathVariable("courseId") String courseId, @PathVariable("memberId") String memberId);
}
